<script>

	export default {
		onLaunch: function() {
			
			plus.screen.lockOrientation('portrait-primary'); //锁定屏幕为竖屏
			
		// #ifdef APP-PLUS
		    try {
		        // plus.navigator.setFullscreen(true); //隐藏手机顶部状态栏
		        plus.navigator.hideSystemNavigation(); //隐藏手机底部导航按键
		    } catch (error) {
		        console.log('设置全屏及隐藏导航按键时出现错误：', error);
		    }
		    // #endif
			
			// 将背景图片存储到本地
			const imagePathOne = '/static/images/home/gif/1.gif'
			const imagePathTwo = '/static/images/home/gif/2.gif'
			uni.setStorageSync('imagePathOne', imagePathOne);
			uni.setStorageSync('imagePathTwo', imagePathTwo);
			
			
  },



		onShow: function() {
			console.log('App Show')
		},
		
		
		onHide: function() {
			console.log('App Hide')
		}
	}
	
	
	
</script>

<style>
	/*每个页面公共css */
view{
	box-sizing: border-box;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}
</style>
